package edu.uc.persistence;

import java.util.List;

import edu.uc.dto.Review;


/**
 * Default review interface structure
 * 
 * @author Robert
 *
 */
public interface ReviewDAOInterface {

	/**
	 * Persist the given review.
	 * @param Save the review.
	 * @throws Exception any problem in the underlying persistence mechanism.
	 */
	public void save(Review review) throws Exception;
	
	/**
	 * List all reviews.
	 * @param List all reviews in the database.
	 * @throws Exception any problem in the underlying persistence mechanism.
	 */
	public List<Review> getReviews() throws Exception;

	/**
	 * List review specific to id.
	 * @param List a specific review.
	 * @throws Exception any problem in the underlying persistence mechanism.
	 */
	public Review fetchReview(String SQLID) throws Exception;
	
	/**
	 * List all user-specific reviews.
	 * @param List all reviews lined to the user.
	 * @throws Exception any problem in the underlying persistence mechanism.
	 */
	public List<Review> getUserReviews(String userId) throws Exception;



}
